/**
 */
package flowchart.impl;

import flowchart.FlowchartPackage;
import flowchart.MultipleConection;
import flowchart.symbols;

import java.util.Collection;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.util.EObjectResolvingEList;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Multiple Conection</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link flowchart.impl.MultipleConectionImpl#getArrow <em>Arrow</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public abstract class MultipleConectionImpl extends symbolsImpl implements MultipleConection {
	/**
   * The cached value of the '{@link #getArrow() <em>Arrow</em>}' reference list.
   * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
   * @see #getArrow()
   * @generated
   * @ordered
   */
	protected EList<symbols> arrow;

	/**
   * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
   * @generated
   */
	protected MultipleConectionImpl() {
    super();
  }

	/**
   * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
   * @generated
   */
	@Override
	protected EClass eStaticClass() {
    return FlowchartPackage.Literals.MULTIPLE_CONECTION;
  }

	/**
   * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
   * @generated
   */
	public EList<symbols> getArrow() {
    if (arrow == null)
    {
      arrow = new EObjectResolvingEList<symbols>(symbols.class, this, FlowchartPackage.MULTIPLE_CONECTION__ARROW);
    }
    return arrow;
  }

	/**
   * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
   * @generated
   */
	@Override
	public Object eGet(int featureID, boolean resolve, boolean coreType) {
    switch (featureID)
    {
      case FlowchartPackage.MULTIPLE_CONECTION__ARROW:
        return getArrow();
    }
    return super.eGet(featureID, resolve, coreType);
  }

	/**
   * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
   * @generated
   */
	@SuppressWarnings("unchecked")
	@Override
	public void eSet(int featureID, Object newValue) {
    switch (featureID)
    {
      case FlowchartPackage.MULTIPLE_CONECTION__ARROW:
        getArrow().clear();
        getArrow().addAll((Collection<? extends symbols>)newValue);
        return;
    }
    super.eSet(featureID, newValue);
  }

	/**
   * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
   * @generated
   */
	@Override
	public void eUnset(int featureID) {
    switch (featureID)
    {
      case FlowchartPackage.MULTIPLE_CONECTION__ARROW:
        getArrow().clear();
        return;
    }
    super.eUnset(featureID);
  }

	/**
   * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
   * @generated
   */
	@Override
	public boolean eIsSet(int featureID) {
    switch (featureID)
    {
      case FlowchartPackage.MULTIPLE_CONECTION__ARROW:
        return arrow != null && !arrow.isEmpty();
    }
    return super.eIsSet(featureID);
  }

} //MultipleConectionImpl
